<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\Flows
 *
 * @property int $id
 * @property string $name 流程名称（文件名）
 * @property int $status 流程状态
 * @property string $approver 审批人id
 * @property string $initiator 发起人id
 * @property string $file 被审批的文件id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|Flows newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Flows newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Flows onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Flows query()
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereApprover($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereFile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereInitiator($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Flows withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Flows withoutTrashed()
 * @property int|null $passed
 * @method static \Illuminate\Database\Eloquent\Builder|Flows wherePassed($value)
 * @property string|null $msg
 * @method static \Illuminate\Database\Eloquent\Builder|Flows whereMsg($value)
 * @mixin \Eloquent
 */
class Flows extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $table = 'flows';
    protected $primaryKey = 'id';

    protected $fillable = [
        'name',
        'status',
        'approver',
        'initiator',
        'file',
        'passed'
    ];
}
